package com.qishanor.system.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
  @description: 部门表
  @author: 周振林
  @date: 2022/4/12
  @Copyright: 博客：http://www.zhouzhenlin.com - 沉淀、分享、成长、让自己和他人都有所收获
**/

@Data
public class SysDept implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(type= IdType.AUTO)
	private Integer id;
	/**
	 * 父级部门id
	 */
	private Integer parentId;

	/**
	 * 部门名称
	 */
	private String name;

	/**
	 * 排序
	 */
	private Integer sort;


	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	@TableField(fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime updateTime;

	@TableField(fill = FieldFill.INSERT)
	private Integer createBy;

	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Integer updateBy;

	/**
	 * 删除标记 1:已删除,0:正常
	 */
	private Integer delFlag;

}
